# 获得图片中心点的偏移量(中心点在最左上角为-100，-100，右下角为100,100)
def offset_rate(imgSize, peopleSize, coordinate):
    centerX = coordinate[0] + peopleSize[0] / 2
    centerY = coordinate[1] + peopleSize[1] / 2
    offsetX = centerX / imgSize[0] - 0.5
    offsetY = centerY / imgSize[1] - 0.5
    return int(offsetX * 200), int(offsetY * 200)
